import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/weathertoy',
  },
  {
    path: '/multiView',
    component: () => import('@/views/multi-view/index.vue'),
  },
  {
    path: '/maplibre',
    component: () => import('@/views/maplibre/index.vue'),
  },
  {
    path: '/weathertoy',
    component: () => import('@/views/index.vue'),
  },
  {
    path: '/twgl',
    component: () => import('@/views/twgl/index.vue'),
  },
  {
    path: '/chart',
    component: () => import('@/views/chart/index.vue'),
  },
  {
    path: '/version',
    component: () => import('@/components/Versions.vue'),
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
